/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package encaps.entities;

import java.util.Date;

/**
 *
 * @author Artem
 */
public class Comment {
    
    private Long id;
    private Long user_id;
    private String content;
    private Date editDate;
    private Date creationDate;
    
    public Comment(Long id, Long user_id, String content, Date date) {
	this.id = id;
        this.user_id = user_id;
        this.content = content;
	this.creationDate = date;
        editDate = date;
    }
    
    public Long getId() {
	return id;
    }
    public void setId(Long id) {
        this.id=id;
    }
    
    public Long getUserId() {
	return user_id;
    }
    

    public String getContent() {
	return content;
    }
    
    public void setContent(String content) {
	this.content = content;
    }
    
    public Date getCreationDate() {
	return creationDate;
    }
 
    public Date getEditDate() {
	return editDate;
    }

    public void setEditDate(Date date) {
	editDate = date;
    }
    
    public String stringRepresentation() {
	return "id="+id+" uid="+user_id+" content="+content+" editDate="+editDate.toString();        
    }
}
